package H;

/**
 * 盗贼
 */
public class Robber extends Game implements Attack,Rob{
    public Robber(){}
    public Robber(String name,int level){
        super(name,level);
    }

    @Override
    public void attack() {
        System.out.println("我是一个等级为："+this.getLevel()+"，名为"+this.getName()+"的"+"盗贼，我能够攻击");
    }

    @Override
    public void rob() {
        System.out.println("我是一个等级为"+this.getLevel()+"名为"+this.getName()+"的医生，我能够偷盗");
    }
}
